<%@ Page Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true" Inherits="SouthernLand.WebMaster.Membership.EditUser" Title="Administrator - Edit User" Codebehind="EditUser.aspx.cs" %>

<asp:Content  ContentPlaceHolderID="PageContent" Runat="Server">
   
  <table border="0" width="98%">
    <tr>
        <td>
            <!-- General user information -->
            <table cellpadding="2" width="100%" border="0" align="center">
              <tr>
                 <td colspan="2" class="text"><b>General user information</b></td>
              </tr>
              <tr>
                 <td style="width: 110px;" class="text">UserName:</td>
                 <td style="width: 300px;" class="text"><asp:Literal runat="server" ID="lblUserName" /></td>
              </tr>
              <tr>
                 <td class="text">E-mail:</td>
                 <td>
                    <asp:TextBox runat="server" ID="txtEmail" Columns="50"></asp:TextBox>
                 </td>
              </tr>
              <tr>
                 <td class="text">Registered:</td>
                 <td class="text"><asp:Literal runat="server" ID="lblRegistered" /></td>
              </tr>
              <tr>
                 <td class="text">Last Login:</td>
                 <td class="text"><asp:Literal runat="server" ID="lblLastLogin" /></td>
              </tr>
              <tr>
                 <td class="text">Last Activity:</td>
                 <td class="text"><asp:Literal runat="server" ID="lblLastActivity" /></td>
              </tr>
              <tr>
                 <td class="text"><asp:Label runat="server" ID="lblOnlineNow" AssociatedControlID="chkOnlineNow" Text="Online Now:" /></td>
                 <td><asp:CheckBox runat="server" ID="chkOnlineNow" Enabled="false" /></td>
              </tr>
              <tr>
                 <td class="text"><asp:Label runat="server" ID="lblApproved" AssociatedControlID="chkApproved" Text="Approved:" /></td>
                 <td><asp:CheckBox runat="server" ID="chkApproved" AutoPostBack="true" OnCheckedChanged="chkApproved_CheckedChanged" /></td>
              </tr>
              <tr>
                 <td class="text"><asp:Label runat="server" ID="lblLockedOut" AssociatedControlID="chkLockedOut" Text="Locked Out:" /></td>
                 <td><asp:CheckBox runat="server" ID="chkLockedOut" AutoPostBack="true" OnCheckedChanged="chkLockedOut_CheckedChanged" /></td>
              </tr>
           </table>
           <!--end General user information -->
        </td>
    </tr>
    
    <tr>
        <td style="padding-top:15pt;">
            <!--Edit user's roles-->
            <table cellpadding="2" width="100%" align="right">
                <tr>
                    <td class="text"><b>Edit user's roles</b></td>
                </tr>
                <tr>
                    <td><asp:CheckBoxList runat="server" ID="chklRoles" RepeatColumns="5" CellSpacing="4" Font-Size="0.7em"/></td>         
                </tr>
           </table>
            <!--End Edit user's roles-->
        </td>
    </tr>
    
    <tr>
        <td>
            <!--Create new role -->
              <table cellpadding="2" width="100%" align="right">
                  <tr>
                    <td style="text-align: right;">
                     <small>Create new role: </small>
                     <asp:TextBox runat="server" ID="txtNewRole" />
                     <asp:RequiredFieldValidator ID="valRequireNewRole" runat="server" ControlToValidate="txtNewRole" SetFocusOnError="true"
                        ErrorMessage="Role name is required." ToolTip="Role name is required." ValidationGroup="CreateRole">*</asp:RequiredFieldValidator>
                     <asp:Button runat="server" ID="btnCreateRole" Text="Create" ValidationGroup="CreateRole" OnClick="btnCreateRole_Click" />
                    </td>
                  </tr>
               </table>
            <!--End Create new role -->
        </td>
    </tr>
    <tr>
        <td><hr /></td>
    </tr>
    <tr>
        <td style="padding-top:15pt;">
            <!-- Edit user's profile -->
            <table cellpadding="2" width="100%" border="0" align="right">
              <tr>
                <td style="text-align: right;" colspan="2">
                    <asp:Label runat="server" ID="lblProfileFeedbackOK" SkinID="FeedbackOK" Text="Profile updated successfully" Visible="false" Font-Size="0.7em" />
                    <asp:Button runat="server" ID="btnUpdateProfile" ValidationGroup="EditProfile" Text="Update" OnClick="btnUpdateProfile_Click" />
                </td>
              </tr>
            </table>
            <!-- End Edit user's profile -->
        </td>
    </tr>
  </table>
   


</asp:Content>

